home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / lib / emacsen-common / packages / remove / dictionaries-common
Encoding:
Text File  |  2009-02-20  |  788 b   |  29 lines

  1. #!/bin/sh
  2. #
  3. # emacsen remove script for the Debian GNU/Linux
  4. # dictionaries-common package
  5. #
  6. # Written by Rafael Laboissiere <rafael@debian.org> and
  7. # Agustin Martin <agmartin@debian.org> based on
  8. # Dirk Eddelbuettel <edd@debian.org> script for the octave package.
  9. # -----------------------------------------------------------------
  10.  
  11. set -e
  12.  
  13. # Canadian spelling ;-)
  14. flavour=$1
  15.  
  16. # Do nothing for dummy 'emacs' flavour
  17. if [ ${flavour} = emacs ]; then exit 0; fi
  18.  
  19. package=dictionaries-common
  20. destination=/usr/share/${flavour}/site-lisp/${package}
  21.  
  22. if [ -d $destination ]; then
  23.     echo remove/${package}: Purging byte-compiled files for flavour ${flavour}
  24.     rm -f ${destination}/*.elc ${destination}/*.el ${destination}/done
  25.     rmdir --ignore-fail-on-non-empty ${destination}
  26. fi
  27.  
  28. exit 0;
  29.